package com.car.dal.dao.reception;


import java.util.List;

import com.car.bean.GridObj;
import com.car.bean.OrderObj;
import com.car.bean.PageObj;
import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.TgReception;
import com.car.dal.object.TgRecruitment;
import com.car.util.Page;

public class TgReceptionDaoImpl extends IbatisCommonDao<TgReception, Long> implements TgReceptionDao {

	public GridObj GetList(TgReception reception, PageObj pageObj) {
		OrderObj order = new OrderObj();
		order.setDir("desc");
		order.setSort("id");
		return super.findByPage(reception, pageObj, order);
	}
	
	public Integer getReceptionCount(TgReception reception) {
		return this.queryForInteger("getReceptionCount", reception);
	}
	
	public List<TgReception> getReceptionByType(TgReception reception , Page page) {
		reception.setFirstrownum(page.getFirstrownum());
		reception.setPagesize(page.getPagesize());
		List<TgReception> list=this.queryForEntityList(TgReception.class,"getReceptionByType", reception);
		return list;
	}
	
	public Integer getReceptionCount2(TgReception reception) {
		return this.queryForInteger("getReceptionCount2", reception);
	}
	
	public List<TgReception> getReceptionByType2(TgReception reception , Page page) {
		reception.setFirstrownum(page.getFirstrownum());
		reception.setPagesize(page.getPagesize());
		List<TgReception> list=this.queryForEntityList(TgReception.class,"getReceptionByType2", reception);
		return list;
	}
	
	public List<TgReception> getReceptionByType3(TgReception reception) {
		List<TgReception> list=this.queryForEntityList(TgReception.class,"getReceptionByType3", reception);
		return list;
	}

	@Override
	public Integer getReceTotalByExcel(TgReception reception) {
		return this.queryForInteger("getReceTotalByExcel", reception);
	}

	@Override
	public Integer getReceSuccessTotalByExcel(TgReception reception) {
		return this.queryForInteger("getReceSuccessTotalByExcel", reception);
	}

	public List<TgReception> getReceptionByKeyname(TgReception reserve) {
		List<TgReception> list=this.queryForEntityList(TgReception.class,"getReceptionByKeyname", reserve);
		return list;
	}
	
	public List<TgReception> getReception(TgReception reserve) {
		List<TgReception> list=this.queryForEntityList(TgReception.class,"getReception", reserve);
		return list;
	}
	
	//成交金额1
	public List<TgReception> getMoney(TgReception reserve) {
		List<TgReception> list=this.queryForEntityList(TgReception.class,"getMoney", reserve);
		return list;
	}
	
	//成交金额2
	public List<TgReception> getMoney1(TgReception reserve) {
		List<TgReception> list=this.queryForEntityList(TgReception.class,"getMoney1", reserve);
		return list;
	}
	
	//本月接待数据统计
	public List<TgReception> getZonlReceptionCount(TgReception reserve) {
		return this.queryForEntityList(TgReception.class,"getZonlReceptionCount", reserve);
	}
	//成单数量
	public Integer getDanReceptionCount(TgReception reception) {
		return this.queryForInteger("getDanReceptionCount", reception);
	}
	//市场接待
	public Integer getZonlEarnestCount(TgReception reserve) {
		return this.queryForInteger("getZonlEarnestCount", reserve);
	}
	
	public Integer getReceCountByType(TgReception reserve) {
		return this.queryForInteger("getReceCountByType", reserve);
	}
	
	
	
	public List<TgReception> getEarnest(TgReception reserve) {
		List<TgReception> list=this.queryForEntityList(TgReception.class,"getEarnest", reserve);
		return list;
	}
	
	public List<TgReception> getEarnest1(TgReception reserve) {
		List<TgReception> list=this.queryForEntityList(TgReception.class,"getEarnest1", reserve);
		return list;
	}
	
	public List<TgReception> getMoneyEar(TgReception reserve) {
		List<TgReception> list=this.queryForEntityList(TgReception.class,"getMoneyEar", reserve);
		return list;
	}

	//缴费统计
	public List<TgReception> getReceptionByStatis1(TgReception reception) {
		List<TgReception> list=this.queryForEntityList(TgReception.class,"getReceptionByStatis1", reception);
		return list;
	}
	public List<TgReception> getReceptionByStatis2(TgReception reception) {
		List<TgReception> list=this.queryForEntityList(TgReception.class,"getReceptionByStatis2", reception);
		return list;
	}
	public List<TgReception> getReceptionByStatis3(TgReception reception) {
		List<TgReception> list=this.queryForEntityList(TgReception.class,"getReceptionByStatis3", reception);
		return list;
	}
	public Integer getReceFailByExcel(TgReception reception) {
		return this.queryForInteger("getReceFailByExcel", reception);
	}

	@Override
	public Integer getReceSuccessTotalByExcelV2(TgReception reception) {
		return this.queryForInteger("getReceSuccessTotalByExcelV2", reception);
	}

	@Override
	public Integer getZonlReceptionCount1(TgReception reception) {
		return this.queryForInteger("getZonlReceptionCount1", reception);
	}


}
